package cn.tedu.egmvc1.controller;

import cn.tedu.egmvc1.pojo.dto.Staff;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class StaffController {

    @ResponseBody
    @RequestMapping("/emp/insert")
    public String insertStaff(Staff staff){
        return "添加成功";
    }

    @ResponseBody
    @RequestMapping("/emp/select")
    public String selectStaff(){
        return "恭喜，查询成功";
    }

    @ResponseBody
    @RequestMapping("/emp/update")
    public String updateStaff(Staff staff){
        return "修改成功";
    }

    @ResponseBody
    @RequestMapping("/emp/delete")
    public String deleteStaff(int id){
        return "删除成功";
    }

}
